<?php

declare(strict_types=1);

namespace app\common\model;

use addons\Target\facade\Target;
use addons\Pay\facade\Pay;

class MerchantOrder extends Base
{
    protected $name = 'merchant_order';
    public function user()
    {
        return $this->hasOne(User::class, 'id', 'uid')->field('id,code,nickname,mobile');
    }

    public function getAccountAttr($value)
    {
        return get_pay_way($value);
    }
}
